package com.wenson.structural.adapter;

/**
 * @ClassName: AdapterClient
 * @Author: luowangcheng
 * @Date: 2024/6/14 8:01
 * @Description:
 */
public class AdapterClient {
    public static void main(String[] args) {
        DualPin dualPinDevice = new TV();
        TriplePin triplePinDevice = new Adapter(dualPinDevice);
        triplePinDevice.electrify(1, 0, -1);

        TriplePin tvAdapter = new TVAdapter();
        tvAdapter.electrify(1, 0, -1);
    }
}
